//
//  JCDropLeftCell.m
//  JCDropTableView
//
//  Created by Guo.JC on 17/6/29.
//  Copyright © 2017年 coollang. All rights reserved.
//

#import "JCDropLeftCell.h"

@interface JCDropLeftCell ()

@property (nonatomic, strong) UILabel *myTextLabel;

@end

@implementation JCDropLeftCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setUp];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setUp];
    }
    return self;
}

- (void)setUp{
    CGFloat width = self.frame.size.width - 20;
    CGFloat height = self.frame.size.height;
    self.myTextLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, width, height)];
    self.myTextLabel.font = [UIFont systemFontOfSize:15];
    self.myTextLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:self.myTextLabel];
    self.myTextLabel.text = NSLocalizedString(@"Data haven't set yet", @"未设置数据");
    self.myTextLabel.tag = 10086;
}

- (void)showText:(NSString *)text{
    self.myTextLabel.text = text;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
